﻿using Swork03_28.Domain.TraceableInfos;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;
using System.Text;
using System.Threading.Tasks;

namespace Swork03_28.Services.Interface
{
    public interface IFarmedService
    {
        Task<List<Farmed>> AllAsync();

        Task<int> CreateAsync(Farmed entity);

        Task<int> DeleteAllAsync(List<Farmed> t);

        Task<int> DeleteAsync(Farmed entity);

        Task<Farmed> GetAsync(int id);

        Task<List<Farmed>> GetValues(Expression<Func<Farmed, bool>> expre);

        Task<int> UpdateAsync(Farmed entity);
    }
}
